package cn.edu.suda.catalina.dataupdate.service.implement;

import cn.edu.suda.catalina.dataupdate.domain.UserInfoRepository;
import cn.edu.suda.catalina.dataupdate.entity.UserInfo;
import cn.edu.suda.catalina.dataupdate.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by admin on 2017/6/22.
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoRepository userInfoRepository;

    @Transactional
    @Override
    public UserInfo save(UserInfo userInfo) {
        return userInfoRepository.save(userInfo);
    }
}
